<!DOCTYPE html>
<html>
<head>
    <title></title>
    <#include "/header.html">
</head>
<style>
    .selectbox {
        height: 50px;
        width: 250px;
        margin: 0 auto;
        margin-bottom: 40px;
        position: relative;
        right:20px;
    }

    .shortselect {
        position: relative;
        left: 30px;
        font-size: 18px;
        background: #fafdfe;
        height: 30px;
        width: 100px;
        line-height: 28px;
        border: 1px solid #9bc0dd;
        -moz-border-radius: 2px;
        -webkit-border-radius: 2px;
        border-radius: 2px;
    }

    .buttonbox {
        height: 100px;
        width: 400px;
        margin: 0 auto;
    }

    .predictorbox {
        width: 1000px;
        height: auto;
        margin: 0 auto;
    }

    .box {
        width: 100%;
        padding-top: 50px;
    }

    .arts,.sciences {
        border: solid;
        display: inline-block;
        width: 45%;
    }

    .twoem {
        padding-right: 2em;
    }

    .buttontype {
        margin-top: 40px;
        width: 100px;
        height: 40px;
        color: #fff;
        background-color: #337ab7;
        border-color: #2e6da4;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.42857143;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        border: 1px solid transparent;
        border-radius: 4px;
        touch-action: manipulation;
        cursor: pointer;
    }
</style>
<body>

<div id="rrapp" v-cloak>
    <div v-show="showChangeAll" class="panel panel-default">
        <div class="selectbox panel-heading">
            <strong> 基准分数:</strong>
            <select class="shortselect" v-model="basicscore.year">
                <option value="2018">2018</option>
                <option value="2017">2017</option>
                <option value="2016">2016</option>
            </select>
        </div>
        <div class="predictorbox">
            <div class="box">
                <div class="arts">
                    <h2>本科文</h2>
                    <ul>
                        <li>
                            <label class="twoem">普通</label>
                            <input type="text" class="form-control" v-model="basicscore.putongwenke">
                        </li>
                        <li>
                            <label>校企合作</label>
                            <input type="text" class="form-control" v-model="basicscore.xiaoqihezuowenke">
                        </li>
                        <li>
                            <label>中外合作</label>
                            <input type="text" class="form-control" v-model="basicscore.zhongwaihezuowenke">
                        </li>
                        <li>
                            <label class="twoem">艺术</label>
                            <input type="text" class="form-control" v-model="basicscore.yishuwenke">
                        </li>
                        <li>
                            <label>3+2连读</label>
                            <input type="text" v-model="basicscore.lianduwenke" class="form-control"
                                   style="position: relative;left:1.5px;">
                        </li>
                    </ul>
                </div>
                <div class="sciences ">
                    <h2>本科理</h2>
                    <ul>
                        <li>
                            <label class="twoem">普通</label>
                            <input type="text" class="form-control" v-model="basicscore.putonglike">
                        </li>
                        <li>
                            <label>校企合作</label>
                            <input type="text" class="form-control" v-model="basicscore.xiaoqihezuolike">
                        </li>
                        <li>
                            <label>中外合作</label>
                            <input type="text" class="form-control" v-model="basicscore.zhongwaihezuolike">
                        </li>
                        <li>
                            <label class="twoem">艺术</label>
                            <input type="text" class="form-control" v-model="basicscore.yishulike">
                        </li>
                        <li>
                            <label>3+2连读</label>
                            <input type="text" class="form-control" v-model="basicscore.liandulike"
                                   style="position: relative;left:1.5px;">
                        </li>
                    </ul>
                </div>
            </div>
            <div class="box">
                <div class="arts">
                    <h2>专科文</h2>
                    <ul>
                        <li>
                            <label class="twoem">普通</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankeputongwenke">
                        </li>
                        <li>
                            <label>校企合作</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankexiaoqiwenke">
                        </li>
                        <li>
                            <label>中外合作</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankezhongwaihezuowenke">
                        </li>
                        <li>
                            <label class="twoem">艺术</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankeyishuwenke">
                        </li>
                        <li>
                            <label>3+2连读</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankelianduwenke"
                                   style="position: relative;left:1.5px;">
                        </li>
                    </ul>
                </div>
                <div class="sciences ">
                    <h2>专科理</h2>
                    <ul>
                        <li>
                            <label class="twoem">普通</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankeputonglike">
                        </li>
                        <li>
                            <label>校企合作</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankexiaoqilike">
                        </li>
                        <li>
                            <label>中外合作</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankezhongwaihezuolike">
                        </li>
                        <li>
                            <label class="twoem">艺术</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankeyishulike">
                        </li>
                        <li>
                            <label>3+2连读</label>
                            <input type="text" class="form-control" v-model="basicscore.zhuankeliandulike"
                                   style="position: relative;left:1.5px;">
                        </li>
                    </ul>
                </div>
            </div>
            <div class="buttonbox">
                <input type="button" class="buttontype" style="position: relative;left:35px;" @click="createPredictor"
                       value="预估分生成"/>
                <input type="button" style="position: relative;left:75px;" class="buttontype" @click="closePredictor" value="返回"/>
            </div>
        </div>
    </div>
    <div v-show="!showChangeAll">
        <div v-show="showList">
            <div class="form-horizontal" style="width: 100%">
                <div class="col-sm-1" style="width: 200px">
                    <select  v-model="q.region" class="form-control" @change="ChangeRegion">
                        <option  value="">全部</option>
                        <option v-for="item in areas" :value="item.name">{{item.name}}</option>
                    </select>
                </div>
                <div class="col-sm-1" style="width: 200px">
                    <select  v-model="q.province" class="form-control" @change="ChangeProvince">
                        <option  value="">全部</option>
                        <option v-for="item in provinces" :value="item.name">{{item.name}}</option>
                    </select>
                </div>
                <div class="col-sm-1" style="width: 200px">
                    <select  v-model="q.city" class="form-control" @change="reload">
                        <option  value="">全部</option>
                        <option v-for="item in cities" :value="item">{{item}}</option>
                    </select>
                </div>
                <div class="col-sm-1" style="width: 200px">
                    <select v-model="q.nature" class="form-control" @change="reload">
                        <option value="公办">公办</option>
                        <option value="民办">民办</option>
                        <option value="混合所有制">混合所有制</option>
                        <option value="独立学院">独立学院</option>
                    </select>

                </div>
                <div class="col-sm-1" style="width: 200px">
                    <select v-model="q.level" class="form-control" @change="reload">
                        <option value="本科">本科</option>
                        <option value="专科">专科</option>
                        <option value="本专兼有">本专兼有</option>
                    </select>

                </div>
                <!--<select v-model="area" class="form-control" @change="reload">-->
                    <!--<option value="济南">济南</option>-->
                    <!--<option value="沿海">沿海</option>-->
                    <!--<option value="鲁中">鲁中</option>-->
                    <!--<option value="鲁西北">鲁西北</option>-->
                    <!--<option value="鲁西南">鲁西南</option>-->
                <!--</select>-->
                <a class="btn btn-danger" @click="showChangeAll=true"><i class="fa fa-sun-o"></i>&nbsp;一键设置</a>
            </div>
            <table id="jqGrid"></table>
            <div id="jqGridPager"></div>
        </div>

        <div v-show="!showList" class="panel panel-default">
            <div class="panel-heading">{{title}}</div>
            <form class="form-horizontal">

                <div v-show="school.level !='专科'">

                    <div class="form-group">
                        <div class="col-sm-4 control-label">学校代码</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.code" placeholder="学校代码"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">学校名称</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.name" placeholder="学校名称"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">普通文科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.putongwenke"
                                   placeholder="普通文科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">普通理科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.putonglike"
                                   placeholder="普通理科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">校企合作文科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.xiaoqihezuowenke"
                                   placeholder="校企合作文科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">校企合作理科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.xiaoqihezuolike"
                                   placeholder="校企合作理科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">3+2连读文科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.lianduwenke"
                                   placeholder="3+2连读文科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">3+2连读理科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.liandulike"
                                   placeholder="3+2连读理科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">中外合作办学文科最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhongwaihezuowenke"
                                   placeholder="中外合作办学文科最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">中外合作办学理科最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhongwaihezuolike"
                                   placeholder="中外合作办学理科最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">艺术文科最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.yishuwenke" placeholder="艺术文科最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">艺术理科最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.yishulike" placeholder="艺术理科最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">春考文科</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.chunkaowenke" placeholder="春考文科"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">春考理科</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.chunkaolike" placeholder="春考理科"/>
                        </div>
                    </div>
                </div>

                <div v-show="school.level !='本科'">

                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科普通文科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankeputongwenke"
                                   placeholder="普通文科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科普通理科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankeputonglike"
                                   placeholder="普通理科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科校企合作文科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankexiaoqiwenke"
                                   placeholder="校企合作文科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科校企合作理科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankexiaoqilike"
                                   placeholder="校企合作理科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科3+2连读文科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankelianduwenke"
                                   placeholder="3+2连读文科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科3+2连读理科专业最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankeliandulike"
                                   placeholder="3+2连读理科专业最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科中外合作办学文科最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankezhongwaihezuowenke"
                                   placeholder="中外合作办学文科最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科中外合作办学理科最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankezhongwaihezuolike"
                                   placeholder="中外合作办学理科最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科艺术文科最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankeyishuwenke"
                                   placeholder="艺术文科最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科艺术理科最低分</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankeyishulike"
                                   placeholder="艺术理科最低分"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科春考文科</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankechunkaowenke"
                                   placeholder="春考文科"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 control-label">专科春考理科</div>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" v-model="school.zhuankechunkaolike"
                                   placeholder="春考理科"/>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                    &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/school/schoolPredictor.js?_${.now?long}"></script>
</body>
</html>